{% extends "base.html" %}
{% block title %}接收数据历史查询{% endblock %}
{% block head_script_block %}
<script src="/js/show_rawdata_realtime.js"></script>
{% endblock %}
{% block body_script_block %}

{% endblock %}
{% block body_content_block %}


<div class="row-fluid">

    <div class="span6" name="raw">
        <legend>设备列表</legend>
        <form class="form-horizontal" action="." method="POST">{% csrf_token %}
        <button type="submit" class="btn" onclick="">查询</button>
        <br>
        <textarea name="devices" id="devices" style="margin: 0px 0px 10px; width: 80%; height: 50%;">{% if devices %}{{ devices }}{% endif %}</textarea>
        </form>
    </div>
    <div class="span6">
        <legend>设备探测数据数量(历史)</legend>
        {% if datas %}

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>设备id</th>
                <th>1天前</th>
                <th>2天前</th>
                <th>3天前</th>
            </tr>
            </thead>
            <tbody>
            {% for data in datas %}
            <tr>
                {% for d in data %}
                    <td>{{ d }}</td>
                {% endfor %}
            </tr>
            {% endfor %}
            </tbody>
        </table>

        {% endif %}
    </div>
</div>

{% endblock %}
